package com.ruoyi.quartz.task;

import com.ruoyi.management.complaint.service.ITOrderEvaluateService;
import com.ruoyi.system.service.ISysDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 修改投诉状态，当投诉时间超过系统设定时转入监管接手
 * 
 * @author lss
 */
@Component("complaintStatusChangeTask")
public class ComplaintStatusChangeTask
{

    @Autowired
    private ISysDictDataService sysDictDataService;

    @Autowired
    private ITOrderEvaluateService tOrderEvaluateService;

    /**
     * 修改投诉状态当投诉时间超过系统设定时转入监管接手
     */
    public void syncComplaint()
    {
        String overTime = sysDictDataService.selectDictLabel("complaint_overtime","overTime");

        tOrderEvaluateService.changeComplainStatusByOverTime(Integer.parseInt(overTime));
    }
}
